[index]

Entry Chunk

Syntax

entry <integer> of <palette> Applies to palettes

Description

The entry chunk yields a particular RGB triplet from the entries of the specified palette. You can use the entry chunk to set or retrieve a particular RGB triplet. The value of <integer> can range from 1 to 256.

Notes

When setting a palette entry as in the previous example, you must quote the RGB triplet. If you put a value into an uninitialized entry of a palette, entries between the last initialized entry and the one you are setting will be set to the corresponding Mac system palette color for that entry. For example, if you have five entries in a palette and then try to set entry fifteen, entries six through fourteen will be set to Mac system palette colors six through fourteen. Remember to follow rules of Macintosh and Windows palettes while developing your application. For the Macintosh, the first entry must be white and the last entry black. For Windows, the first 8 and the last 8 entries must be blank. You cannot specify ranges with the entry chunk. For example, the following is incorrect: entry 5 to 20 of palette "Blues" New entries set using the entry chunk expression are not displayed until the palette has been realized.
This text has been mechanically extracted from the Oracle Media Objects 1.0.4.9 MediaTalk Reference, © 1995 Oracle Corporation, and is provided here solely for educational/historical purposes.